package com.kevineric;

import java.io.*;
import java.net.Socket;

public class RobotServerTester {
	final static int PORT=4055;
	/**
	 * @param args
	 */
	public static void main(String[] args) throws IOException{
		
		Socket sock=new Socket("192.168.1.101", PORT);
		
		PrintStream out=new PrintStream(sock.getOutputStream());
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		
		String text;
		while((text=br.readLine())!=null){
			int dx=(int)(Math.random()*100)-50;
			int dy=(int)(Math.random()*100)-50;
			out.println("m,"+dx+","+dy);
			System.out.println("m,"+dx+","+dy);
		}
		

	}

}
